if condition inside echo in php

91

if condition inside echo in php -

echo '<option value="'.$value.'" '.(($value=='United States')?'selected="selected"':"").'>'.$value.'</option>';

Comments

Submit
0 Comments